Bug fix: Window can now be closed in the main menu