ipv6 support fixes
fix bug during termination clean up