All scripts need a dedicated exit method to be unloaded properly starting with 5.4, unloadscripts.lua was never actually unloading anything - it was more of a dummy empty script that'd you load and stop other stuff from executing due to legacy ways of handling hooks.