Cleaning up by rearranging
Retrying "Connection died, retrying a fresh connect" curl errors.

This is a backport of the fix added for Guzzle 4 in
https://github.com/guzzle/guzzle/issues/754.

This change likely resolves
https://github.com/aws/aws-sdk-php/issues/319 from the AWS SDK for PHP.