}
ChukwaAgent.agentMetrics.adaptorCount.set(adaptorsByName.size());
ChukwaAgent.agentMetrics.removedAdaptor.inc();
try {
offset = toStop.shutdown(shutdownMode);
log.info("shutdown ["+ shutdownMode + "] on " + name + ", "
+ toStop.getCurrentStatus());
} catch (AdaptorException e) {
log.error("adaptor failed to stop cleanly", e);
} finally {