Fix crash caused "-debug -noautosave" when exiting the debugger immediately.