Automatically reconnect dead sockets.