Automating tasks : Stopping or undoing a script
 
Stopping or undoing a script
You can stop a script while it is running. You can also undo a script after you’ve run it.
To stop a running script
Edit workspace 
Click the Stop Script button .
The Stop Script button is only active while the script is running. Depending on the script, this may only be a few seconds.
To undo an applied script
Edit workspace 
Click the Undo button on the Standard toolbar.