Add clean failure handling for analyses

Fleshes out the _failure_callback method for an analysis so it shouldn't get stuck when any bit fails.
Oh ok, I'll have a look at that, thanks