Multiple copies of the same grasshopper documents open on Compute env?

We have been running a Rhino.Compute server for a few years now.
We use it for boolean operation and for computing grasshopper scripts.
We have a custom c#script component in our grasshopper scripts that logs information about the executing grasshopper script (attached) and here is a snippet from the log at 14:31 on Tuesday that shows Rhino.Compute had 13 grasshopper documents open:

Tuesday, 25 June 2024 14:31:31
Grasshopper.Instances.DocumentServer.DocumentCount=13
Document at index: 0 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','0' 
Document at index: 1 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','1' 
Document at index: 2 : '28efb94c-9006-4df7-a6df-97b081c4e897','2' 
Document at index: 3 : 'bd279390-ddec-412d-83f9-20a64a788bb4','3' 
Document at index: 4 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','4' 
Document at index: 5 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','5' 
Document at index: 6 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','6' 
Document at index: 7 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','7' 
Document at index: 8 : '2c6df788-f716-4c52-86d1-bb095a8c8bae','8' 
Document at index: 9 : 'ebc61c17-5030-4ad1-be92-61b72b1f46ba','9' 
Document at index: 10 : 'dc61320a-3b8a-4f01-ad0e-9115e17c0ecd','10' 
Document at index: 11 : 'ee1be4c0-a1d9-428c-8635-916ee2c8f12c','11' 
Document at index: 12 : '3b6a34c9-c267-4662-9d62-f28240cfee0b','12' 

Why does it keep them open after executing them?
In the log snippet above you can see that documents 0,1,4,5,6,7,8 are the same document. So what purpose does it serve to have multiple copies of the same document open?

cheers
monkeyFace
Sausages.gh (26.7 KB)

It seems to me that it might be useful for McNeel to be able to take a look at your logging component.

Fair enough, I’ve attached the sausages.gh which contains the logging script component to my original post just for completeness… However I don’t want it to distract from the question because the logger itself appears to be working just fine.

Kudos to AndyPayne for solving this for me - unfortunately it was a direct message so i’ve presented the salient info as the solution marked on this thread :