removes depricated settings handler and refractors daemon threads to exit gradefully