He had been sentenced to death "in absentia" by the Supreme Criminal Court during the Kościuszko Uprising in 1794. On 17 November 1797 he was made a general of the Russian infantry, but was dismissed on 30 October 1798.