private void closeShardFiles(ShardFiles shardFiles){
  shardFiles.deleteAllShardFiles();
  _lock.lock();
  try {
    _openShardFiles.remove(shardFiles.getKey());
    _shardFilesClosedOrExceptionCaught.signalAll();
  }
  finally {
    _lock.unlock();
  }
}

private void closeShardFiles ( ShardFiles shardFiles ) { shardFiles . deleteAllShardFiles ( ) ; _lock . lock ( ) ; try { _openShardFiles . remove ( shardFiles . getKey ( ) ) ; _shardFilesClosedOrExceptionCaught . signalAll ( ) ; } finally { _lock . unlock ( ) ; } }
cleans up any files associated with the shardfiles instance and removes it from then open set of shardfiles .
