public void closeConnection() throws IOException {
  if (!isConnected())   return;
  socket.close();
}

public void closeConnection ( ) throws IOException { if ( ! isConnected ( ) ) return ; socket . close ( ) ; }
closes the open connection only . the server socket remains open .
