Quality-of-life helper to allow using trailing lambda syntax for adding a failure listener to a Task.