Run on_failure block on the tree