code: def stop(self):
          '''
          Shutdown zmq listener.
          '''
          log.info('Stopping the zmq listener class')
          self.sub.close()
          self.ctx.term(f stop(self):
          '''
          Shutdown zmq listener.
          '''
          log.info('Stopping the zmq listener class')
          self.sub.close()
          self.ctx.term()
docs: Shutdown zmq listener.