Failure callback fix.

Reviewer: @aogilvie