Fix stopping scripts in the script editor