Headless: Avoid unnecessary exception allocation. Better logging in HeadlessNet