Handle failed/cancelled transactions (bug 987843)
Merge pull request #446 from kumar303/wait-fail

Handle failed/cancelled transactions (bug 987843)