I am trying to make George Script stop completely from within a function if an error has occurred.
According to http://wiki.tvpaint.com/index.php?title=EXIT" onclick="window.open(this.href);return false;, "EXIT" "Quits the George program." but it seems to me that EXIT only exit the current function and not the entire script.
Since the interpreter can't know whether you just want to exit the function or exit the entire script...
Initialize a global ExitFlag = 0.
Inside any function at the point where you want to make a script-exit, set the global ExitFlag = 1, immediately before you EXIT from the function.
Back in the main section, immediately after you've called any function that might contain a script-EXIT, test the ExitFlag and if == 1, then immediately EXIT the main section and you're out.