He was executed in Karlovac on 3 July 1612 as an example to his troops who were creating difficulties for the Habsurgs by their piracy against Venetian shipping on the Adriatic Sea, and by marauding raids into the Ottoman hinterland.