threadstest: cleanup