Catching error when ipv6 is off