code: protected void stop(boolean close) throws IOException {
          if(!thread.isInterrupted()) {
              thread.interrupt();
          }
  
          conHandler.onDisconnected();
  
          if(close) con.close();
      }
docs: Stops the connection, but does not removes it from the list.
  
  For a complete cleanup, use {@link #close()} instead
  @param close Whether it will close the connection
  @throws IOException When an I/O error occurs