Adding the function throwDie()