@Override
 public synchronized void connect() throws IOException {
   this.connected = true;
   super.connect();
 }