Avoid unclean reactor errors from `vertex.ConnectionCache`.

`ConnectionCache` didn't properly wait for connection to close,
when shutting down.

This doesn't have direct tests yet, but demonstrates the issue.