pass back error to callback
Merge pull request #17 from bkw/socket-hangup-pr

pass back request errors to callback