     }
     runCase(startCase-1, caseCount: count){ (error) in
         if error == nil{
+            updateReports(true){
+               exit(0)
+            }
         } else {
-            printFailure(error)
-            exit(1)
-        }
-        updateReports(true){
-            exit(0)
+            updateReports(true){
+               exit(1)
+            }
         }
     }
 }

                        runCase(caseIdx+1, caseCount: caseCount, block: block)
                    }
                }
                if keepStatsUpdated {
                    updateReports(false, block: f)
                } else {
                    f()

            //printinfo("INFORMATIONAL")
        } else {
            print("[ERR] FAILED: \(error!.localizedDescription)")
        }
    }
}
