Catch IO error during read and retry