public async Task DisconnectAsync(CancellationToken cancellationToken = default) { if (_db != null) { try { await _db.DetachAsync(cancellationToken).ConfigureAwait(false); } catch { } finally { _db = null; _owningConnection = null; _options = null; } } }