Scripting in micro-manager2 - how to close acquisition window?

I am running acquisition from script in a loop, changing another device in between*. At the end, I have tens of acquisition windows open - how to close them from script? It would appear that the current version of the class has no method for this:
https://valelab4.ucsf.edu/~MM/doc-2.0.0-beta/mmstudio/org/micromanager/acquisition/AcquisitionManager.html

*piezo stage that is controlled via voltage given by NI device

You can use following beanShell command.

aa = mm.acquisitions().runAcquisition(); // for open and run the MDAacquisition
aa.close(); // for close the above application window