Keep the main window open while waiting for shutdown.