         out-queue-2 (.begin processors)
         live-acq (LiveAcq. mmc out-queue-2 (make-summary-metadata settings)
                   (:save settings) acq-eng)]
-    (swap! (.state this) assoc :image-cache (.getImageCache live-acq))
+    (swap! (.state this) assoc :image-cache (.getImageCache live-acq)
+                               :acq-thread acq-thread)
     (def outq out-queue)
     (when-not (:stop @(.state this))
       (if (. gui getLiveMode)

  (test-dialog (create-acq-eng)))

(defn stop []
  (swap! (.state last-acq) assoc :running false))


;; java interop

(defn -init []
  [[] (atom {:stop false})])

(defn -run [this acq-settings acq-eng]
  (def last-acq this)
