[CLC-1495] Wrapping connections with connection_pool.with_connection, clearing active connections on logout and finished cache warming