Pause simulation engine before quitting.