Close menus on window blur