Handle daemons connection/disconnection