Handle a potential race in which the socket has disconnected but the reconnect has not yet begun.