Somehow detect when a MEL script is not responding or jumping at the same location over and over and within a specified timeout display a popup window asking whether or not to abort the current script...
Currently when making a mistake in for or while loop conditions there is no choice but forcefully close Maya and lose the code in Maya script editor and other unsaved worked in the scene.