[PATCH 1/2] remote_daemon: Set shutdown callbacks only after init is done