Turn off debug, destroy mask box when the menu closes