code: def wait(self):
          
          try:
              SpawningProxy(self.containers, abort_on_error=True).wait()
          except Exception:
              # If a single container failed, stop its peers and re-raise the
              # exception
              self.stop()
              raise
docs: Wait for all running containers to stop.