Fixed reconnection logic in EventStoreConnection.