fix NPE in BatchingQuIP and prevent S3 client from getting gc’d in S3ToES