exit on death fix