Mir Kasim died in poverty in 1777.