fixes ZEN-15717

DO NOT MERGE
Yes, that's right. If it exits because the channel is closed, then something unexpected has occurred. We should log an error here and provide a nonzero exit code. Thanks; I'll put that in tomorrow morning.