Debuging a failed stream read