destroying parser on parse error