presto-main/src/main/java/io/prestosql/execution/StateMachine.java/StateMachine/fireStateChangedListener
class StateMachine:    private void fireStateChangedListener(T newState, StateChangeListener<T> stateChangeListener)
    {
        try {
            stateChangeListener.stateChanged(newState);
        }
        catch (Throwable e) {
            log.error(e, "Error notifying state change listener for %s", name);
        }
    }