improve reconnect in Connector