general cleanup.  Added a stack-trace to logging in deamon.py