Add option to .parse() to emit error events for parsing errors.