Fixes #2. Convert exceptions to error events.
Merge pull request #4 from ericlathrop/stream-error-event

Fixes #2. Convert exceptions to error events.