[PATCH] Don't execute final_action if failure_action terminates the system