Adds context manager semantics to Connector
(to implicit connection closing)