added energy.die() into object die() hooks