Added retries for EOF errors too.