code: func (r *RemoteRuntimeService) StopContainer(containerID string, timeout int64) error {
  	// Use timeout + default timeout (2 minutes) as timeout to leave extra time
  	// for SIGKILL container and request latency.
  	t := r.timeout + time.Duration(timeout)*time.Second
  	ctx, cancel := getContextWithTimeout(t)
  	defer cancel()
  
  	r.logReduction.ClearID(containerID)
  	_, err := r.runtimeClient.StopContainer(ctx, &runtimeapi.StopContainerRequest{
  		ContainerId: containerID,
  		Timeout:     timeout,
  	})
  	if err != nil {
  		klog.Errorf("StopContainer %q from runtime service failed: %v", containerID, err)
  		return err
  	}
  
  	return nil
  }
docs: // StopContainer stops a running container with a grace period (i.e., timeout).