Daemonize threads

This way, they'll die as soon as the main thread dies.