You should listen for errors.
no more tabs.
Merge pull request #5 from bjornstar/master

listen for socket errors so that you can emit errors on its behalf