Set threads as daemons