after defeat he took refuge in sucre bolivia