This needs to run only when the client is started in daemon mode - I have a branch with some refactors to init and will suggest an alternate mechanism there.