public static void closeWriter(Writer writer) {
        if (writer == null) return;
        try { writer.close(); } catch (IOException e) {}
    }
Closes a writer, or does nothing if the writer is null
vespajlib/src/main/java/com/yahoo/io/IOUtils.java