Meanwhile, Governor-General Cornwallis removed the acting Governor of Madras Mr. Hollond from his post, because he had not provided any aid to Travancore in the battle. The new Governor mobilized the British forces stationed in Travancore to support the Maharajah. Hearing of this, Tipu Sultan decided to retreat from Travancore and Malabar to his own kingdom, to avoid war with the British. But war did occur, in which Travancore provided its forces to the British. The Third Anglo-Mysore War led by the Governor-General Cornwallis in person eventually led to the defeat of Tipu Sultan at his capital Seringapatnam in 1792. Tipu Sultan surrendered and the Treaty of Seringapatam was signed. The terms of surrender were particularly harsh in that Tipu had to hand over two of his sons as hostages to British custody until he cleared the amount of 33 million fixed as the costs of the British campaign against him.