make dird reload its config upon bus event
remove useless threading import
typo
change shutdown order

reason: wait for the threads to finish before unloading plugins
improve config reloading mechanism