I can replicate this on a Mac pretty easily. The default project can trigger it. Hit F5 to run the program, then when the window opens (the editor should still have focus), start hitting F5 again.
The window with the running project will not close, it will instead become unresponsive. It outputs ws close into the console. The editor window is still responsive.