correctly handle error from s3 client