def METHOD_NAME(procs, no_retry=False):
  for p in procs:
    managed_processes[p].stop()
  time.sleep(1)
  if not no_retry:
    for p in procs:
      mp = managed_processes[p].proc
      if mp is not None and mp.is_alive():
        managed_processes[p].stop()
    time.sleep(3)