The glitches happen for one simple reason. The lua scripts are loaded into active memory rather then being loaded and read directly from the filesystem and as such...sometimes a glitch will happen if a script does not load right in active memory or if a script is missing the cleanupgarbage() function in the script when it ends and leaves some things in memory that are not overwritten by another script...etc.