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.