This is with MQX 4.0.1 on a MK60FN1M0VMD12. The best I can tell so far is the second time the Ethernet cable is unplugged it loops on this while (ipif->IGMP_MEMBER). The first time a cable is unplugged it breaks out on an error(RTCSERR_IGMP_INVALID_IP) returned from IGMP_leave_socket_all. The second time IGMP_leave_socket_all returns RTCS_OK but does not do anything and it continues to do this looping on while (ipif->IGMP_MEMBER). I am looking to find if I can see the problem but the first time through always returning an error make this loop not do much and I am thinking of taking it out or just forcing it to run IGMP_leave_socket_all on every member of the structure.