This closes the dropdown menu (the one clicking on your username). Closing of popups is handled elsewhere.