Added condition to only save new exceptions, if desired.