Placed Connection::get_shared_instance() at a better spot in reauthenticate().