Check to stop parser after error