Close the main window to quit the app