fail gracefully on SocketError. closes gh-1