code: public void stop(){
          this.running = false;
          for(TargetSession session : sessions){
              if(!session.getConnection().stop()){
                  this.running = true;
                  LOGGER.error("Unable to stop session for " + session.getTargetName());
              }
          }
      }
docs: Stop this target server