He resigned on 26 December 1815 and settled in Ruda. He took part in the November Uprising despite ill health, including time commanding 5th Infantry Division. He was killed at Ostrołęka when a cannonball broke both his legs while he was leading the last Polish counterattack against the Russian beachhead. His grave is currently on a private estate on the outskirts of Ostrołęka.