selftest: Rework child process cleanup