def METHOD_NAME(self):
    failures = []
    for container in self._containers:
        if not container.running_container:
            # container is not running
            continue
        try:
            container.running_container.shutdown()
        except Exception as e:
            failures.append((container, e))
    if failures:
        for container, ex in failures:
            LOG.error(
                f"Failed to remove container {container.running_container.id}",
                exc_info=LOG.isEnabledFor(logging.DEBUG),
            )