stop dragging when closing the collection