@Override public synchronized void stop(StopContext context) { super.stop(context); if (shouldDestroy) { try { getJmsServer().getValue().destroyQueue(this.queueName); } catch (Exception e) { if (null != e.getCause()) { log.warn(e.getCause().getMessage()); } else { log.error("Can't destroy queue", e); } } } }