Correct a bug caused by a misuse of [] un std::map. Swap order of EventConsumer call to reduce how often the close event occure before other events. (But it still CAN happend before all events are consumed)