catch socket hangup error

    events.js:72
        throw er; // Unhandled 'error' event
              ^
    Error: socket hang up
Merge pull request #3 from askmike/patch-2

catch socket hangup error