ACCUMULO-3228 fix possible resource leaks
ACCUMULO-3228 fix possible resource leaks