@Override public void cleanUp() throws IOException { try (Timer.Context t = cleanupDuration.time()) { containerMemoryTracker.remove(_port); cleanUpForRestart(); } catch (IOException e) { //This may or may not be reported depending on when process exits numCleanupExceptions.mark(); throw e; } }