Failure should be called when error is not nil.