Ensure that we wait for connections.

Wait for connections to be established before killing the connection
manager and verifying that they get reestablished.