add daemon flags to non-essential threads
save previous log