presto-main/src/main/java/io/prestosql/dispatcher/FailedDispatchQuery.java/FailedDispatchQuery/addStateChangeListener
class FailedDispatchQuery:    @Override
    public void addStateChangeListener(StateChangeListener<QueryState> stateChangeListener)
    {
        executor.execute(() -> stateChangeListener.stateChanged(FAILED));
    }