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(). 
Or, a function called post_fail_hook could be use? if so,only need to modify autotest.pm.