Global on_failure callback is called too early.
Imported from https://youtrack.roxen.com/issue/PIKE-166
Reported by @grubba
The callback installed via Concurrent.on_failure()
may get called before the user has had a chance at installing custom failure callbacks.
Defer the call until the Promise
is destructed.