Fixed wording that triggers a ni bug in parsing the source text.
Added forgotten check for valid line terminators.
Added interception of glk_exit.