test/testutil/init.c, apps/openssl.c: add trace cleanup handle earlier