Added a catch to the generator.getDocumentSettingsForPlugin promise which will reject if the document has been closed. This happens (at least) when a document is opened and then quickly closed.
@bialikover in case this did not occur to you, you could probably test this in your scenario by making this change in the generator files of your own copy of photoshop (at your own risk).
Added a catch to the
generator.getDocumentSettingsForPlugin
promise which will reject if the document has been closed. This happens (at least) when a document is opened and then quickly closed.