Prevent server from leaking error handler.
Merge pull request #5 from timoxley/emitter-leak

Prevent server from leaking error handler.