Added error logging to the S3 plugin

Added error logging to the S3 plugin,
I came across a couple of possible error while setting up the S3 cache plugin.

Adding these few lines really helped me out debugging the S3 cache plugin.
Sorry I haven't gotten to this. No, this shouldn't break that line.