Improved session dropping behavior on version switch, added ipv6 support