Fix handling of SSH2_MSG_CHANNEL_CLOSE, which was breaking in port