better error handling in iomux_run (epoll implementation)