How to stop script execution

This thread might be helpful to you. It sounds like you are trying to do something similar.

1 Like