public void close() throws IOException {
  if (socket != null) {
    send("QUIT");
    readCode(221);
    socket.close();
  }
}

public void close ( ) throws IOException { if ( socket != null ) { send ( "QUIT" ) ; readCode ( 221 ) ; socket . close ( ) ; } }
close the connection ( quit ) .
