[Scripting][vm] Finished unloadScript function.