Hmm, I will definitely need to try it to see what happens, but I don't see code related to *graceful* connection shutdown. It's just that the zkConnection will die (because GC'd), no? Compare this to the previous code where there was explicit lifecycle methods for orderly shutdown.

Maybe this is just nitpicking though