presto-cli/src/main/java/io/prestosql/cli/CsvPrinter.java/CsvPrinter/finish
class CsvPrinter:    @Override
    public void finish()
            throws IOException
    {
        printRows(ImmutableList.of(), true);
        writer.flush();
        checkError();
    }