Deal with the case when the connection is cached.