Make `connOpen` exception-safe.

Exceptions after `connect` in `startup` or `useKeyspace` would not have
closed the newly acquired connection, causing resource leaks.