presto-cli/src/main/java/io/prestosql/cli/ThreadInterruptor.java/ThreadInterruptor/interrupt
class ThreadInterruptor:    public synchronized void interrupt()
    {
        if (processing) {
            thread.interrupt();
        }
    }