Catch unauthorized exception

Change-Id: I7dfe9d9c5b37979b659c48a32bc7f55f39e2d4cc