make the worker thread a daemon thread.

This makes the main python process exit once the main thread stops for
whatever reason, preventing it from waiting indefinity for the worker
threads.