Added state save after WHOIS query for better resuming, better check if net is defined