handle failure to create event loop
read all available bytes when socket ready