Message 188173 - Python tracker
I didn't test Roger's patch because I have limited access to Windows, but I think it should solve this specific issue. But the problem is actually more general. For example, the same odd behavior happens when you try to run a module without saving. On MacOS one modal dialog pops up, but in Windows you can open as many dialogs as you want.