exit on io disconnected