implemented global error flag to indicate program termination
implemented builtin-functions SetError() and SetErrorIf() to set the global error flag during codeblock runtime