WhenClose still doesn't reflect on MenuBar closing.
Well, there is a problem with "what menu".
Note that these callbacks are named
WhenOpenSubMenu and WhenCloseSubmenu.
-> note 'SubMenu'.
This is because the intended use is for the main menu (which is not a popup and is visible all the time) and callbacks reflect opening/closing of first level submenus.