Simplified cleanup code by removing epoll handler close 'method'.