Service service = (Service)value;
try {
if (LOG.isTraceEnabled()) {
LOG.trace("Stopping service: " + service);
}
service.stop();
} catch (Exception e) {
if (LOG.isDebugEnabled()) {
LOG.debug("Caught exception stopping service: " + service, e);
}
if (firstException == null) {