code: public void removeOutputPlugin(OutputPluginModel outputPlugin) {
          Future future = futureHashMap.remove(outputPlugin.getID());
          if (future != null) {
              future.cancel(true);
          }
          outputPlugins.remove(outputPlugin);
      }
docs: removes the OutputPlugin and stops the thread
  
  @param outputPlugin the outputPlugin to remove