code: public void stop() {
          synchronized (LOCK) {
              if (this.active) {
                  this.active = false;
                  logger.info("Stopping UDP Manager");
                  stopTasks();
                  closeSelectors();
                  cleanResources();
                  logger.info("UDP Manager has stopped");
              }
          }
      }
docs: Stops polling the network.