Fix for failure block not being called when cancelled