Provides a way to recover from a failure. The transform block is only called if the result is a Failure.