def METHOD_NAME(self):
    """
    This function should be called from the simulation engine
    when it is closing to make sure that G4 references are set to None.
    """
    self.material_database = None
    # self.volumes_user_info = None