fix stop parsing on exception