also free the udns context before we bail with a NULL return