Ability to stop script execution from an event handler