1. fix multi event check problem.
2. add EPOLLHUP detecting.
fix compile error.
fix: when task is closed(after EDM_CLOSE), free event resources.