Adding an error logger when SSL fails for S3