URScript sent from my URcap is halted by PolyScope

I’m developing a URcap which uses URcap Sample: URscript communicator to send a URscript to URcontrol when the user clicks on a button on the ProgramNodeView of my URcap.
The script is sent on the secondary interface (port 30002) and runs for a while since it reads/writes some registers and moves the robot. The URcap works just fine, but I’ve noticed that if I interact with PolyScope while the script is still running, e.g. adding a Waypoint to the program tree, the script is immediately stopped.

Does anybody know why does this is happening? Is there any documentation to understand how Polyscope works and how/why it affects the scripts running on URcontrol?

Best regards,