Fix watchdog.py to login before daemonizing
Merge "Fix watchdog.py to login before daemonizing" into develop