handle errors on the socket
Merge pull request #9 from uber/0.0.4-dns-recovery.error-handling

[DNS recovery]: handle errors on the socket