simplify client.Read() error handling