fixes ZEN-15717

DO NOT MERGE
Do we need to exit with a non-zero code if the channel closes?  If the command exits it looks like it will exit a few lines down.