This ensures that the restartable init containers receive a termination signal even if there are any not-started restartable init containers, by ignoring the not-running containers.
Sidecars should terminate: - after all main containers have exited - serialized and in reverse order