add failure callback to analysis pipeline. Fix #466
add test for _failure_callback
Merge pull request #526 from squirrelo/issue-466

Add clean failure handling for analyses