[shutdownmenu] Close all dialogs before going to settings.