Preconditions.checkState(lastContainerId != null,
"No container found for {} with instanceId = {}", runnableName, maxInstanceId);
LOG.info("Stopping service: {} {}", runnableName, lastController.getRunId());
lastController.stopAndWait();
containers.remove(runnableName, lastContainerId);
removeInstanceId(runnableName, maxInstanceId);
resourceReport.removeRunnableResources(runnableName, lastContainerId);
containerChange.signalAll();
} finally {