protected override void FinishWrite() { TableData?.Close(); if (BulkInsertConnectionManager != null) { BulkInsertConnectionManager.IsInBulkInsert = false; BulkInsertConnectionManager.CleanUpBulkInsert(DestinationTableDefinition?.Name); BulkInsertConnectionManager.CloseIfAllowed(); } }