Remove unused imports, modify on_halt to check attr _select_epoll