if (_closingChannels.remove(channelId) == null)
{
final AMQSession session = getSession(channelId);
try
{
session.closed(new AMQException(code, text, null));
}
catch (JMSException e)
{
throw new AMQException(null, "JMSException received while closing session", e);
}