Added promises that are resolved when the menu is closed.