Closing the main window while in main menu will now properly close the applicaiton.