MZ Play animation on death - Visustella Battlecore compatibility

JavaScript:
(() => {
    const parameters = PluginManager.parameters('DeathAnimation');
    const defaultAnimation = Number(parameters['defaultAnimation']);

    const _Game_Enemy_performCollapse = Game_Enemy.prototype.performCollapse;
    Game_Enemy.prototype.performCollapse = function() {
        if (this.isEnemy()) {
            console.log(`Enemy ${this.enemyId()} died`);
            if (!this.enemy().meta.noDeathAnimation) {
                const animationId = this.enemy().meta.deathAnimation || defaultAnimation;
                console.log(`Playing animation ${animationId}`);
                BattleManager._logWindow.push('showAnimation', this, [this], animationId);
            }
        }
        _Game_Enemy_performCollapse.call(this);
    };
})();

Here is the fruit of my labour. This plugin plays an animation after the enemy has died. unfortunately, it does this WELL after the enemy has disappeared. Is there any way to fix it so that it behaves appropriately?

This is a minimalistic approach because of several incompatibilities of previous methods with Battle Core VS. if a fix can be implemented, i'd love to hear it.

Original thread: https://forums.rpgmakerweb.com/threads/play-animation-on-death-visustella-battlecore-compatibility.159103/