test harness cleanup