presto-cli/src/main/java/io/prestosql/cli/OutputHandler.java/OutputHandler/close
class OutputHandler:    @Override
    public void close()
            throws IOException
    {
        if (!closed.getAndSet(true)) {
            printer.finish();
        }
    }