Better daemonization with double fork and setsid.