Grasshopper not responding/ lock server

I wrote a script with ‘lock server’ turned on, and when I tried to turn it off in order to see the preview, grasshopper stopped responding. I always have to force close the software. Any suggestions how to fix it?

final script_autosave.gh (30.1 KB)