Ensure last lines of debug output read when exiting processes with an issue. Catches debug messages present at immediate end of stdout stream