Add some %variable to commands (one for all or different for each command) and use
If you specify the -uN switch, %var is unset after N seconds, assuming it is not set again by another script. If you specify a zero for N, the variable is unset when the script finishes. (c) mIRC help
So you can check if this %var expired so command may trigger again or not expired, so command halted.