Bug fix to remove event handlers for unselected destinations.