首页 / 缓存 / 退出程序时,防止无缓存的channel没有消费完的方法