code: def check_pending_target(self, scan_id, multiscan_proc):
          
          for running_target_proc, running_target_id in multiscan_proc:
              if not running_target_proc.is_alive():
                  target_prog = self.get_scan_target_progress(
                      scan_id, running_target_id)
                  if target_prog < 100:
                      self.stop_scan(scan_id)
                  running_target = (running_target_proc, running_target_id)
                  multiscan_proc.remove(running_target)
          return multiscan_proc
docs: Check if a scan process is still alive. In case the process
          finished or is stopped, removes the process from the multiscan
          _process list.
          Processes dead and with progress < 100% are considered stopped
          or with failures. Then will try to stop the other runnings (target)
          scans owned by the same task.
  
          @input scan_id        Scan_id of the whole scan.
          @input multiscan_proc A list with the scan process which
                                may still be alive.
  
          @return Actualized list with current runnging scan processes.