Fixed a code typo in the failed handler, this should resolve the issue with it not correctly working.