For batch runs, run essential post commands on any failure in a test run.