delete _scriptHandlerMgr in destruct will cause stack overflow