code: func (b *bucket) Close() error {
  	var err error
  
  	// If the items were updated, write them out to disk.
  	if b.itemsUpdated {
  		err = writeBucket(b.file, b.items)
  		if err != nil {
  			b.backend.log.Warnf("Unable to update keys in %v: %v.", b.file.Name(), err)
  		}
  	}
  
  	err = utils.FSUnlock(b.file)
  	if err != nil {
  		b.backend.log.Warnf("Unable to unlock file: %v.", err)
  	}
  
  	err = b.file.Close()
  	if err != nil {
  		b.backend.log.Warnf("Unable to close file: %v.", err)
  	}
  
  	return nil
  }
docs: // Close will write out items (if requested), unlock file, and close it.