Now returns parse exceptions and too many clauses exceptions as <Error> tags so they can be identified by the C++ code.