add static exception event for cookie validation errors
handle crypto error in sample code