presto-main/src/main/java/io/prestosql/execution/RemoteTask.java/RemoteTask/addFinalTaskInfoListener
class RemoteTask:    void addFinalTaskInfoListener(StateChangeListener<TaskInfo> stateChangeListener);