Removing inbound connections when an element is removed