Make daemon shutdown more robust in that all threads are definately dead on shutdown