Provide a safe way to abort the parser from within the onerror handler