Delete all cyclic-references when closing.