Meanwhile, his wife and children (Including Hasan Ali) continued to live in Kahak off the revenues obtained from the family holdings in the Mahallat (Maḥallāt) region.
[1] While Khalil Allah resided in Yazd, his land holdings in Kahak were being managed by his son-in-law, Imani Khan Farahani, husband of his daughter Shah Bibi.
Hasan Ali Shah managed to restore order in Kerman, as well as in Bam and Narmashir, which were also held by rebellious groups.
When it was clear that continuing the resistance was of little use, Hasan Ali Shah sent one of his brothers to Shiraz in order to speak to the governor of Fars to intervene on his behalf and arrange for safe passage out of Kerman.
Hasan Ali Shah was on a hunting trip at the time, but he sent a messenger to request permission of the monarch to go to Mecca for the hajj pilgrimage.
Permission was given, and Hasan Ali Shah's mother and a few relatives were sent to Najaf and other holy cities in Iraq in which the shrines of his ancestors, the Shiite Imams are found.
Other minor battles were won by Hasan Ali Shah before he arrived in Shahr-e Babak, which he intended to use as his base for capturing Kerman.
He managed to defeat a government force consisting of 4,000 men near Dashtab, and continued to win a number of victories before stopping at Bam for a time.
[1] Fleeing Iran, Hasan Ali Shah arrived in Kandahar, Afghanistan in 1841 – a town that had been occupied by an Anglo-Indian army in 1839 in the First Anglo-Afghan War.
After his arrival, Hasan Ali Shah wrote to Sir William Macnaghten, discussing his plans to seize and govern Herat on behalf of the British.
The British refused and only agreed to transfer Hasan Ali Shah's residence to Calcutta, where it would be harder for him to launch new attacks against the Persian government.
The government agreed to Hasan Ali Shah's return provided that he would avoid passing through Baluchistan and Kirman and that he was to settle peacefully in Mahallat.
Although some of his lands were restored to the control of his relatives, his safe return could not be arranged, and Hasan Ali Shah was forced to remain a permanent resident of India.
[1] The vast majority of his Khoja Ismaili followers in India welcomed him warmly, but some dissident members, sensing their loss of prestige with the arrival of the Imam, wished to maintain control over communal properties.
In 1866, these dissenters filed a suit in the Bombay High Court against Hasan Ali Shah, claiming that the Khojas had been Sunni Muslims from the very beginning.
After reviewing the history of the community, Justice Arnould gave a definitive and detailed judgement against the plaintiffs and in favour of Hasan Ali Shah and other defendants.