Allow shutting down the app with window close/quit