     (event-fn)
     (await-resume)))
 
-(defn run-acquisition [this settings out-queue]
+(defn run-acquisition [this settings out-queue cleanup?]
   (try
     (def acq-settings settings)
     (log (str "Starting MD Acquisition: " settings))

      (let [acq-seq (generate-acq-sequence settings @attached-runnables)]
        (def acq-sequence acq-seq)
        (execute (mapcat #(make-event-fns % out-queue) acq-seq))
        (cleanup)
        (.put out-queue TaggedImageQueue/POISON)
        ))
    (catch Throwable t (do (ReportingUtils/showError t "Acquisition failed.")

  (let [acq-eng (.getAcquisitionEngine gui)
        acq-settings (.getSequenceSettings acq-eng)
        settings (convert-settings acq-settings)]
    (run-acquisition-with-processors this settings acq-eng true)))

(defn -run [this acq-settings acq-eng]
  (load-mm)
  (let [settings (convert-settings acq-settings)
        out-queue-2 (run-acquisition-with-processors this settings acq-eng true)]
    (when-not (:stop @(.state this))
      (let [live-acq (LiveAcq. mmc out-queue-2 (:summary-metadata @(.state this))
                               (:save settings) acq-eng gui)]
