Really stop code when focusing editor.