:curly_loop: fixed long-running threads

PTAL @broady @domesticmouse 

I did some testing using a very basic sample app and it wasn't closing after main() finished. This changed value is passed to setDaemon(), so the thread should be closed.