make error handling code in ultradns more readable