Additional error checks in S3_PING

- Log an error if writing a file to the S3 bucket fails
- Validate the usage of the prefix property