catch unauthorized exception