code: public void stop() {
          if(log.isInfoEnabled()) {
              log.info("Stopping Zabbix agent.");
          }
  
          if(enablePassive) {
          	if(log.isInfoEnabled()) {
          		log.info("Stopping passive listener.");
          	}
  
  	        listenerThread.shutdown();
  	        try {
  	            listenerThread.join();
  
  	        } catch(InterruptedException ie) {
  	            //
  	        }
  
  	        if(log.isInfoEnabled()) {
  	        	log.info("Passive listener stopped.");
  	        }
          }
  
          if(enableActive) {
          	if(log.isInfoEnabled()) {
          		log.info("Stopping active agent.");
          	}
  
          	activeThread.shutdown();
          	try {
          		activeThread.join();
  
          	} catch(InterruptedException ie) {
          		//
          	}
  
          	if(log.isInfoEnabled()) {
          		log.info("Active agent stopped.");
          	}
          }
  
          if(log.isInfoEnabled()) {
              log.info("Zabbix agent stopped.");
          }
      }
docs: Stop processing requests. Stops any passive or active components started in the <code>start</code>
  method.