I also got the problem described in the following threads:
import rhinoscriptsyntax as rs
rs.Command("_Exit")
rs.Exit()
don’t work when executed in an ‘if’ clause. If I click “Test code”, it works as expected.
I call the python component for closing Rhino and GH at the end of my solution. I could kill the process from within a python component, but that could lead to license issues (Killing a Rhino.exe process does not free a license in Zoo)at
Has anything changed on this topic or is it still a problem?