Catch AmazonClientExceptions to prevent connection loss