make sure we disconnect before trying to reconnect