fixed #446 (EngineRunner clears the global scope when an engine is finished) in the CEDMA refactoring branch.