docs: def close(self):
          """Close and delete instance."""
  
          # remove callbacks
          Datastore.stores[self.domain].remove(self)
  
          # delete data after the last instance is gone
          if self.release_storage and not Datastore.stores[self.domain]:
              del Datastore.global_data[self.domain]
  
          del self