Draft daemonizing logic.