Hi Andrei,
I'm happy to see you here ^^
I have forwarded your question. Answers say that there is no already implemented (like usual Ctrl-C) way to cancel an RPS process yet.
They refer to this post :
https://stackoverflow.com/questions/22657514/terminating-an-ironpython-script/22856785#22856785 and suggest to use a cancel/toggle button or something like this (or alternatively a file you delete). I assume considering time required that you have loops. Maybe you could try something like :
if button has been pushed => break at the beginning of your main loop.
The file alternative is to check if a file still exist. You delete the file to cancel the loop.
Maybe native in RPS in a future release ^^