Improve S3 syncing error handling.