add destroyInstance for ScriptHandlerMgr
delete _scriptHandlerMgr in destruct will cause stack overflow
Merge pull request #6151 from mgcL/ScriptHandlerMgr-memory-free

add destroyInstance for ScriptHandlerMgr