fix #58 - make sure all popup menus are closed