[fix] Add missing `error` listeners. #93 #98

In addition to that, i've cleaned up the source a bit of the #98 pull request
the emits should take care of the error handling, transforming of the errors etc