Correctly emit errors thrown when we attempt to parse a line.

We hit an issue using 0.9.2 with an error being thrown while parsing a line rather than being emitted as an event from the stream.

This change is intended to catch any parse errors and emit them as an error event - as written it maintains the invariant that once an error has been emitted no more data is processed.