It seems that theOk, I had some ico's are embedded in to the layer regardless of rasterizinga folder and such(at leastit seems if one has any ico in the project that the ico plugin will pop up for export options at some casespoint depending on what is called(in my case, doc.Trim()). CopyingIt only does this once after project load. My script was ignoring all the layer then pastingico files I had so I thought it as a new layer seemsshouldn't matter. Seems to work and preventsbe some kind of initialization issue with the ico plugin from popping up export options.
Probably a good idea to do this forUltimately rasterizing all imported ico's is the solution. Any lingering ico files will trigger the plugin and break the flow.