private void closeConnection(){
  try {
    if (pw != null) {
      pw.close();
      pw=null;
    }
    if (br != null) {
      br.close();
      br=null;
    }
    if (socket != null) {
      socket.close();
      socket=null;
    }
    if (serverSocket != null) {
      serverSocket.close();
      serverSocket=null;
    }
  }
 catch (  IOException e) {
  }
}

private void closeConnection ( ) { try { if ( pw != null ) { pw . close ( ) ; pw = null ; } if ( br != null ) { br . close ( ) ; br = null ; } if ( socket != null ) { socket . close ( ) ; socket = null ; } if ( serverSocket != null ) { serverSocket . close ( ) ; serverSocket = null ; } } catch ( IOException e ) { } }
close all current connections and io streams
