NXP-13464: redirect to CAS if exception occurs in an anonymous session