delete selection-created relationships on close.