Save history when the erorr occur during extract