Now the getip fails when curl fails to obtain the external ip.

Now the getip fails when curl fails to obtain the external ip.

Closes #1.