Changed exception type when parser crashes