I believe IPAddr will always raise `ArgumentError` if the argument is not a valid IPv4 or IPv6 address as I just used it in metasploit-model's IPFormatValidator, so `RuntimeError` should be changed to `ArgumentError` here.