HResult logging fix.