ecode: Fixed a crash while unloading documents that were still loading. Fixed an incorrect un-initialization of the thread pool when consumed by the UISceneNode.