Walker and his surviving soldiers fled to Granada during the night. Several factions inside the Costa Rican Army sought to pursue and kill Walker, thus ending the war. President Mora cancelled the plan, seeing his troops were already battle-worn. Mora wanted to use his resources to bury the dead and take care of the wounded and sick. Although Costa Rica was victorious in the Battle of Rivas, the country could not enjoy the victory. Bodies from the fighting were dumped in the wells of the city causing a huge outbreak of cholera.