after the defeat he went into exile in bolivia