Thanks for your bug report. I tested your script and it seemed fine? Was I meant to be looking for return/halt values/behaviour? Identifier warnings? Commands not being halted? Events not being halted? A combination of all of the above?
Please provide one script that reproduces one issue. If there are multiple issues, please provide one script per issue. I do not want to be adding/removing semicolons from different parts of a script in the hope that I can reproduce what I think you are seeing :-]