Added code to distinguish failed case.
BugzId: 2731