The "recovery" code should be inside a `finally` block, in case the `task` crashes.