Ensure that the parser is finished and did not error