Force close app on window close