[fix] Added listener for `error` event, fixes #93
Merge pull request #98 from lpinca/fix/uncaught-error-event

Add `error` event listener for issue #93