ActiveMQConnection amqc = (ActiveMQConnection)sharedConnection.getConnection();
// Delete client's temp reply queue from AMQ Broker
if ( amqc != null && !amqc.isClosed() && !amqc.isClosing() && consumerDestination != null &&
consumerDestination instanceof ActiveMQTempDestination ) {
try {
amqc.deleteTempDestination((ActiveMQTempDestination)consumerDestination);
} catch( Exception e) {
e.printStackTrace();
}
}
// The destroy method closes the JMS connection when