dnet: fixup error handling in initialization