[connectionagent] this needs to disconnect first

Otherwise it causes a back and forth issue
Merge pull request #49 from lpotter/master

[connectionagent] this needs to disconnect first