Add daemon_detach, and use it.