Adds "error" event thrown by EventEmitter.
Fixes error inheritance chain.
Merge pull request #93 from tessel/tcr-error

Fix errors and events.