When closing a global menu popup, you need to select an option or click inside the application window for it to close. (i think it is supposed to close just by clicking anywhere on the screen)
Seems to be solved in 5.9.0. I do not have this problem anymore.