fix watchdog error stream file management