eventpump: break from event loop on kqueue/epoll error