Create a death animation and make it play when the character dies. Once the animation finishes, make the object exit or destroy itself so the death sequence ends properly.