Thanks; good catch on the lock.

Setting it to null would work at the basic level but, since shared sessions need to use the caching connection factory, we'd need to somehow clear the cache as well.

I'll think about it.