Fix panic on closed stdout in auxiliary output paths
Fix panic on closed stdout in auxiliary output paths: a task in Trending-SWE1.0 (Harbor dataset). Title: Fix panic on closed stdout in auxiliary output paths
The task
**Title:** Fix panic on closed stdout in auxiliary output paths
Part of scalingX/Trending-SWE1.0.