dispose the connector on shutdown