         return container?.viewContext
     }
     
-    public override func setup() {
+    public override func setupStack() {
         container = getPersistentStoreContainer()
+    }
+    
+    public override func cleanupStack() {
+        container = nil
     }
     
     var accidentError: Error?

        }
    }
    
    public func setup() {}
    public class func container() -> DatabaseContainerProtocol? {
        if #available(iOS 10, *) {
            return DatabaseContainerModern_Encryption()//DatabaseContainerModern()

        return mainContext
    }
    
    public override func setupStack() {
        coordinator = getPersistentStoreCoordinator()
        mainContext = getMainContext()
    }
    
    public override func cleanupStack() {
        coordinator = nil
        mainContext = nil
    }
    
    var accidentError: Error?
