[connectionagent] fix crash when connman goes away