fixes, and epoll_ctl error handling