Prevent pm2 from crashing if the channel is closed