[DNS recovery]: handle errors on the socket

This handles errors on the UDP sockets which previously
    went to uncaught. The only real thing to do here
    is to de-allocate the socket.

cc @kriskowal @sh1mmer