Propagate result when using defer.