code: public static void close(ModbusSlave slave) {
          if (slave != null) {
              slave.closeListener();
              slaves.remove(slave.getType().getKey(slave.getPort()));
          }
      }
docs: Closes this slave and removes it from the running list
  
  @param slave Slave to remove