class_docstr: Run ZAP authentication in a background thread
class_docstr_tok: ["Run","ZAP","authentication","in","a","background","thread"]
docstr: Stop the authentication thread
docstr_tok: ["Stop","the","authentication","thread"]
code: def stop(self):
      """Stop the authentication thread"""
      if self.pipe:
          self.pipe.send(b"TERMINATE")
          if self.is_alive():
              self.thread.join()
          self.thread = None
          self.pipe.close()
          self.pipe = None
  
imports: import time
  import logging
  from threading import Thread, Event
  import zmq
  from zmq.utils import jsonapi
  from zmq.utils.strtypes import bytes, unicode, b, u
  import sys
  from .base import Authenticator
label_desc: Use image node_id 10 for calling the ThreadAuthenticator obj's underlying member method code with example usage: obj.stop() without return types