Merge pull request #928 from gao-yan/remote-disconnect-use-after-free
Fix: crmd: Prevent use-after-free when an unexpected remote client takes over