Hotloading of LUA on file detection of file change

Fix object destruction double delete bug
Fix script manager double shutdown bug