small cleanups of Debug::Trace module - to fix subtle after main ends bugs on gcc/linux (only seen with valgrind)