More robust error handling on Parser.