add destroyInstance for ScriptHandlerMgr
delete _scriptHandlerMgr in destruct will cause stack overflow
CCEventDispatcher crash fix
Fix possible crashes which could be caused by the EventDispatcher having listeners associated with nodes are destroyed. Catch the case where a node registers a listener while we are dispatching events and gets destroyed while that event is still being dispatched. Check the list of nodes to be added into the event dispatcher fully when we are cleaning listeners for a target node.

This issue was found using the extra debug verification in this pull request:
https://github.com/cocos2d/cocos2d-x/pull/6011
Add an event dispatcher test
Add an event dispatcher test to help reproduce crashes fixed by the previous commit and to verify that the fix still works.
Add extra CCNode verification
Add a check to the CCNode destructor to catch a common cocos2d-x programming mistake - forgetting to call base class onExit() in derived class onExit() implementations. We can check for this invalid API usage by checking if the node is still marked as running on destruction. If the node still thinks it's running then it's likely the cleanup logic performed by Node::onExit() was not done.
Unregistered listener when it's removed from _toAddedListeners.
Merge pull request #6162 from dumganhar/pull/6160

Fixed a potential crash in EventDispatcher, based on PR #6160
Update AUTHORS [ci skip]
Update CHANGELOG [ci skip]
Update the reference of submodule plugin-x
modify ShaderTest.cpp not crah to autotest.
[ci skip], delete ShaderFail sample in ShaderTest.cpp.
closed #4533:fix console upload hang issue
closed #4683: use assert because CCASSERT is not thread safe
closed #4710: [win32] Crash in EventDispatcher if game starts up with mouse moving frequently
issue #4710: Fixed wrong indention.
closed #4711: [win32] Passing empty string to FileUtils::isFileExist may also return true
Merge pull request #6170 from dumganhar/iss4711-fileexist-win32

closed #4711: [win32] Passing empty string to FileUtils::isFileExist may also return true
Merge pull request #6169 from dumganhar/iss4710-eventdispatcher-crash

closed #4710: [win32] Crash in EventDispatcher if game starts up with mouse moving frequently
Merge pull request #6165 from natural-law/develop

Update the reference of submodule plugin-x