If you set some code executing, then try to compile while the code is still executing, you get a dialog which tells you that you can't compile while executing. Which is fine. The obvious two actions ...