The forces of Polish Crown Hetman Mikołaj Potocki (nicknamed "Bearpaw") in 1637 defeated the Cossacks in the Battle of Kumeyki, and Pavlyuk surrendered near Borovytsia on December 20. The General sejm wanted Pavlyuk to be executed for rebellion using the usual method of making him look like a jester by putting a heated crown on his head and putting a heated sceptre in his hands. In February 1638, the king's representative Adam Kisiel said that the insurgents had not fought to the death, but had voluntarily surrendered because they had trusted him to be merciful. The King abolished the heated crown and sceptre execution method, and Pavlyuk was instead brought to Warsaw, tried and executed. The remnants of his forces capitulated near Borovytsia soon afterwards and he was succeeded in his command of Registered Cossacks by colonel Ilyash Karaimovich.