If S3 closes the connection on us during a read or write, retry the request. Note: the write might have been successful, we can't know so we need to retry.