issue #2087: Small fix for EventDispatcher. Adding EventDispatcher::destroyInstance method.