Add NLog logging
check if hostname not null before calling clearServiceHostInfo, set hostname to null in clearServiceHostInfo