Add an entrance for cleaning after a failed case.

Besides rollback snapshot,add an function for some cleaning action after a failed case. But need to implement in individual case,like rewrite function post_failure().