Pass the socket for socket exceptions.