[connectionagent] fix crash when connman restarts