Do not leave empty page when the source file cannot be opened. Also fixed crash when stopping debugging and starting again.