Log unhandled `error` events as errors.
Merge pull request #900 from Gozala/bug/error-events@821042

fix Bug 821042 - Unhanhled error events should be logged r=@erikvold