Changed threads to be daemonic

Or we might leave them behind on crash.
Also changed from simple boolean signals, to multiprocessing Event
signals.