{
_logger.error("Exception caught in" + this + ", closing session explictly: " + throwable, throwable);
MethodRegistry methodRegistry = MethodRegistry.getMethodRegistry(getProtocolVersion());
ConnectionCloseBody closeBody = methodRegistry.createConnectionCloseBody(200,new AMQShortString(throwable.getMessage()),0,0);
writeFrame(closeBody.generateFrame(0));
_networkDriver.close();
}
}