The problem intika experiences is/was something I warned about (at least I thought... dunno for certain) for such scripts. However it is perfectly possible to make the script so that it does not open new instances anymore in those cases. It takes clever planning of how the script works though and it isn't that easy/straightforward...
EDIT: fixed some spelling