Added extra error checking.
Merge branch 'master' of https://github.com/lukamicoder/ddns-client