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

Closes #1.