code: func (db *DB) Close() (err error) {
  	close(db.close)
  	db.updateGCWG.Wait()
  
  	// wait for gc worker to
  	// return before closing the shed
  	select {
  	case <-db.collectGarbageWorkerDone:
  	case <-time.After(5 * time.Second):
  		log.Error("localstore: collect garbage worker did not return after db close")
  	}
  	return db.shed.Close()
  }
docs: // Close closes the underlying database.