For now there is no possible way to stop a groovy script from executing. If you create an infinite loop for example the application will crash in no time giving you no other option but to stop ReadyA...
The problem is that if you make a mistake and you create a big/ infinite loop there is no way to stop the execution of the script. Once you started it you can just wait for ReadyApi to crash...