capture stderr in daemons