Set threads to daemons so that they exit when the main thread exits