close stdin, stdout, stderr in daemon