Handle cookie exceptions