Set daemon to true for thread