All python script stop running after quit a command without finish

Hi guys, did anyone also got this problem?

I have a simple script like:
if Run:
pts = rs.GetRectangle(1,None,L+’-pt1’,L+‘pt2’)
rec = ghc.PolyLine(pts,True)
I run the script, but after select the 1st point, I press ‘Esc’ and quit the process.
Then all the python scrip in the GH document stop running. Even the simple “ghc.ConstructPoint(0,0,0)” cannot work…

I’m just wondering why is that happening, and is there anyway to make them work again without restart the Rhino App?

Thank you!