workaround could be (if the mel script has a often repeated loop) to declare a variable, so you can stop it before the loop finished.