Add exception handling to SetClaim with debug logging

This can be for the branch only, to allow debugging of
bug 71479.

Change-Id: Ia604e41c634de36afdfa661a6ca2b81486bff6d4