connect the window manager close button to the application.