Remove event and I/O loop code, we will use libevent for that.