public static boolean removeImplantThread(RelayBot_ForwardConnection threadToRemove, long threadID_ToRemove)
  {
    try
    {
      if ((Driver.alRelayTerminals == null) || (Driver.alRelayTerminals.size() < 1))
      {
        Driver.sop("alRelayTerminals - ArrayList is empty. No clients further to remove");
        return false;
      }

      if (Driver.alRelayTerminals.contains(threadToRemove))
      {
        boolean success = Driver.alRelayTerminals.remove(threadToRemove);

        if (success)
        {
          Driver.sop("* Successfully removed thread id: " + threadToRemove);
          try
          {
            threadToRemove.sktConnection.close();
            Driver.sop("Forwardlink socket closed.");
          }
          catch (Exception localException1)
          {
          }
          try {
            threadToRemove.parent.sktMyConnection.close();
            Driver.sop("Backlink socket closed.");
          }
          catch (Exception localException2) {
          }
          try {
            threadToRemove.continueRun = false;
          }
          catch (Exception localException3) {
          }
        }
      }
      updateConnectedImplants();

      return true;
    }
    catch (Exception e)
    {
      Driver.sop("Exception handled when removing thread id: " + threadID_ToRemove + " in " + strMyClassName);

      updateConnectedImplants();
    }return false;
  }