Update message_channel.js for closed ports