Prevent the user from closing the main menu