Add try around facts and log statements