If the error-recovery statement includes a code or other indication to log the error and terminate execution of the script, processing module 145 may log the error in memory or transmit the error log to an I/O device such as a printer or the display and then terminate execution of the script file.