Fixed logging caught exception (incorrect fix applied in last commit)