 
 (defn execute [event-fns]
   (doseq [event-fn event-fns :while (not (:stop @state))]
+    (check-for-serious-error)
     (try (event-fn) (catch Throwable e (ReportingUtils/logError e)))
     (await-resume)))
 

(def active-slice-sequence (atom nil))

(def pixel-type-depths {"GRAY8" 1 "GRAY16" 2 "RGB32" 4 "RGB64" 8})

;; time


        [org.micromanager.sequence-generator :only [generate-acq-sequence
                                                    make-property-sequences]])
  (:require [clojure.set])
  (:import [org.micromanager AcqControlDlg MMStudioMainFrame]
           [org.micromanager.api AcquisitionEngine TaggedImageAnalyzer]
           [org.micromanager.acquisition AcquisitionWrapperEngine LiveAcq TaggedImageQueue
                                         ProcessorStack SequenceSettings MMImageCache
