ClientEnvironment: Support epoll. Clean ClientEnvironment startup and shutdown.