Closed
Description
When trying to stop a program which uses run_editor_on_exception, PyCharm first sends a KeyboardInterrupt which is intercepted by our except hook, which means PyCharm's Ctrl-F5 does not restart the program but opens the editor instead. Then hitting Ctrl-F5 again kills the program, having potentially bad consequences, like leaving behind empty Excel instances around (see larray-project/larray#1008)