emit 'end' event once cleanup

Workaround for this issue:
https://github.com/sockjs/sockjs-node/issues/79