Fixed: Handling a fatal error at various stages

Fixed handling of a fatal error before the window has been created.
Also fixed handling of a fatal error during startup busy mode: the
window must be destroyed and the application event loop paused so that
nothing is drawn or processed during the error message box.