MainMenu.close Method

Closes the main menu, and any dialogs that may be shown.