To finish your debug session, either allow your application to run to completion or halt it using the square red button in the debug tool bar. You can then right-click on the "Debug" icon in the top right hand of the display and click close to close the Debug perspective.