his next mission was to work towards the end of the carlist war