Check channel is idle before closing
ChannelFactory is a ChannelPool with 0 minChannels
Use ChannelFactory in the code examples