see if read() fails