eventscript: simplify script timeout handling