failtest: free up everything on exit.