Fix to issue #49: No timer working when running in daemon mode