Add error handling and simplify utun setup. Incorporate suggestion from David Woodhouse <David.Woodhouse@intel.com> about utun allocation without using a loop.