presto-main/src/main/java/io/prestosql/execution/SqlTaskExecution.java/SqlTaskExecution/isFinished
class SqlTaskExecution:        @Override
        public synchronized boolean isFinished()
        {
            if (closed) {
                return true;
            }

            return driver != null && driver.isFinished();
        }