well... if you remove the on QUIT events, your script should not stop working. Not unless you added some kind of anti ripping scripts that would make everything stop working if any files are changed.
try putting ; marks in front of all the lines in your on QUIT events and see what happens next time you quit.
Example: put the ; marks in front of all the lines of on quit like this!
;on 1:QUIT:{
;echo w00t
;}