             }
             if error != nil {
                 let exception: NSException = NSException(name: "Context saving exception", reason: "Pending changes in the root savinv context couldn't be saved", userInfo: ["error": error!])
-                SugarRecord.handle(exception)
-            } else {
+                SugarRecord.handle(NSException())
+            }
+            else {
                 SugarRecordLogger.logLevelInfo.log("Existing changes persisted to the database")
             }
             context.reset()

    /**
    Closure for AutoSaving changes
    */
    internal func autoSavingClosure() -> () -> ()
    {
        return { [weak self] (notification) -> Void in
            if (self != nil  && self!.autoSaving) {

        context = NSManagedObjectContext(concurrencyType: .PrivateQueueConcurrencyType)
        context!.persistentStoreCoordinator = persistentStoreCoordinator!
        context!.addObserverToGetPermanentIDsBeforeSaving()
        if #available(iOS 8.0, *) {
            context!.name = "Root saving context"
        } else {
            // Fallback on earlier versions
        }
        SugarRecordLogger.logLevelVerbose.log("Created MAIN context")
        return context!
    }
