failtest: generic cleanup hooks