protected virtual void Dispose(bool disposing) { if (!disposed && disposing) { Api.JetCloseDatabase(this.jetSession, this.chainStateDbId, CloseDatabaseGrbit.None); this.jetSession.Dispose(); disposed = true; } }