To reduce the number of places that cleanup_disconnect is called.
At other places in ind_cxn_try_to_connect, such as when socket() or fcntl() fails, the only thing we do is close the socket and set sd=-1.