public static void closeQuietly(Socket socket) {
        if (socket != null) {
            try {
                socket.close();
            } catch (Exception ignored) {
                // Ignored
            }
        }
    }
Closes 'socket', ignoring any exceptions. Does nothing if 'socket' is null.
common/src/main/java/org/conscrypt/io/IoUtils.java