Grasshopper Python save

Hello,

saving python script does not save the whole gh file.
If you have to kill Rhino because you made a mistake (i.e. while loop with incorrect break condition) you will loose all changes you’ve made because they are not actually saved to the file.
Even when you “save” the script edits.

Having to “ctrl + s” twice to actually save everything does not seem like intended behaviour.
Am I doing something wrong?
Is there a way to force grasshopper to stop all calculations? This is (as far as I know) traditionally “ctrl + c”.