Closes the menu last shown by showMenu: hides its popup and disposes its menu composition. A no-op when no menu is open, so it is safe to call repeatedly.