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(). 
Not like function post_fail_hook(),which will be called after the whole run died. This function should/could be called after every fail case to clean env. Like close the open window.