Set threads as daemons to ensure proper cleanup on exit