What's the right way to unwrap a `TaskFailedException`?

Sure, that’s basically what I wrote above, no? Except with exception instead of result.