The animation_finished
signal will never be emitted if the "death"
animation is loopable; this prevents queue_free()
from executing.
To fix this, select your AnimatedSprite2D node, open the SpriteFrames panel at the bottom, choose the "death"
animation, and toggle off its loop property.