Added FailedCallback. Fixes #170
Merge branch 'hotfix-1.1.1' into release-1.1.1