Editing and saving a shared script restarts gateway scripting in all projects, and prompts or triggers client restarts for all projects (unless that’s been turned off). It is incredibly disruptive on large systems, and unless you are really careful with state, can really scramble an operation. I recently posted some comprehensive advice for consideration. You might find the whole thread helpful.