Set the socket to null on disconnect