code: def _psutil_kill_pid(pid):
      
      try:
          parent = Process(pid)
          for child in parent.children(recursive=True):
              child.kill()
          parent.kill()
      except NoSuchProcess:
          return
docs: http://stackoverflow.com/questions/1230669/subprocess-deleting-child-processes-in-windows