Fix request handler , it wasn't properly checking for invalid reads, ergo: disconnected clients.