i found a problem where if you delete a compiled script it will still working afterward. i stumble upon this when i tried to delete an on close script with print command in it it still printing the text from the deleted script.
for general on start and on close script it's easy to fix by writing a replacement script as there can only be one of those types, but i haven't tried on other types of script