Add save/restore exception context templates for processing exceptions.