public void close() throws IOException {
  socket.close();
}

public void close ( ) throws IOException { socket . close ( ) ; }
closes the socket to the client , effectively ending the telnet session and the terminal .
