Use Daemon instead of ThreadDaemon.