code: def _fallback_cleanups(self):
          '''
          Fallback cleanup routines, attempting to fix leaked processes, threads, etc.
          '''
          # Add an extra fallback in case a forked process leaks through
          multiprocessing.active_children()
  
          # Cleanup Windows threads
          if not salt.utils.platform.is_windows():
              return
          for thread in self.win_proc:
              if not thread.is_alive():
                  thread.join()
                  try:
                      self.win_proc.remove(thread)
                      del thread
                  except (ValueError, NameError):
                      pasf _fallback_cleanups(self):
          '''
          Fallback cleanup routines, attempting to fix leaked processes, threads, etc.
          '''
          # Add an extra fallback in case a forked process leaks through
          multiprocessing.active_children()
  
          # Cleanup Windows threads
          if not salt.utils.platform.is_windows():
              return
          for thread in self.win_proc:
              if not thread.is_alive():
                  thread.join()
                  try:
                      self.win_proc.remove(thread)
                      del thread
                  except (ValueError, NameError):
                      pass
docs: Fallback cleanup routines, attempting to fix leaked processes, threads, etc.