Register the daemon only if pld.py is in the top-level scope.