Headless: Avoid unnecessary exception. Better log
Merge pull request #1363 from Unkn0wn0ne/patch-1

Headless: Avoid unnecessary exception allocation. Better logging in HeadlessNet