public static void closeQuietly(Socket socket){
  if (socket != null) {
    try {
      socket.close();
    }
 catch (    Exception ignored) {
    }
  }
}

public static void closeQuietly ( Socket socket ) { if ( socket != null ) { try { socket . close ( ) ; } catch ( Exception ignored ) { } } }
closes ' socket ' , ignoring any exceptions . does nothing if ' socket ' is null .
