- handling s3 errors