If one of the child threads registers the callback after the entire task finishes and TaskContext#executeOnCompleteCallbacks() is run, then the main thread never executes that callback, and everything finishes silently.

Manually tested that part by adding a `Thread.sleep(10000)`...