code: public void unregisterShanksAgent(String agentID){
          if (this.agents.containsKey(agentID)) {
              //  this.agents.get(agentID).stop();
              if (stoppables.containsKey(agentID)) {
                  this.agents.remove(agentID);
                  this.stoppables.remove(agentID).stop();
              } else {
                  //No stoppable, stops the agent
                  logger.warning("No stoppable found while trying to stop the agent. Attempting direct stop...");
                  this.agents.remove(agentID).stop();
              }
          }
      }
docs: Unregisters an agent.
  
  @param agentID - The ID for the agent