code: def stop(*args):
      
      if _debug: stop._debug("stop")
      global running, taskManager
  
      if args:
          sys.stderr.write("===== TERM Signal, %s\n" % time.strftime("%d-%b-%Y %H:%M:%S"))
          sys.stderr.flush()
  
      running = False
  
      # trigger the task manager event
      if taskManager and taskManager.trigger:
          if _debug: stop._debug("    - trigger")
          taskManager.trigger.set()
docs: Call to stop running, may be called with a signum and frame
      parameter if called as a signal handler.