destroy cursor when char dies