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.
The callback is called from the `ParallelWrapper`, once it performs the sanity checks for each node in the workflow.