There is no protection in place to stop a user from creating a scripting job that just iterates indefinitely, which will bring the app down. Script execution needs to be boxed off into its own thread and only given a limited amount of execution time before it is killed, whether it be on start, finish or in an event callback.