// The connection is going away. Deposit our metric totals
// with the metric manager
MetricManager mm = Globals.getMetricManager();
if (mm != null) {
mm.depositTotals(service.getName(), counters);
}
// Clear, just in case we are called twice
counters.reset();