/*
* Unregister/Destroy connection MBeans in the JMX agent in the broker.
*/
Agent agent = Globals.getAgent();
if (agent != null) {
agent.notifyConnectionClose(id.longValue());
agent.unregisterConnection(id.longValue());
}
synchronized(addLock) {
if (addCount > 0) {