LPS-51193 Change the shutdownhook's duty to be initiating a channel close, rather than trying to do the cleanup by itself.