[Gooey] Fixed submenus not being destroyed with their parent menu.