code: public void close() {
  		if (thread == null) {
  			closed = true;
  		}
  
  		running = false;
  
  		if (thread != null) {
  			thread.interrupt();
  		}
  	}
docs: /*
  public IOStreamConnectorState getState() { return state; }