Group will fail at jormungar submerge

During the Northrend Beasts if your group kills one jorungar. Maybe a second later it’s broadcasted that you lose and the mobs despawn.

I believe it’s located within

   void JustDied(Unit* /*killer*/)
    {
        if (instanceScript)
        {
            if (Creature* otherWorm = Unit::GetCreature(*me, instanceScript->GetData64(otherWormEntry)))
            {
                if (!otherWorm->isAlive())
                {
                    if (!m_uiNextBossCheck)
                    instanceScript->SetData(TYPE_NORTHREND_BEASTS, SNAKES_DONE);

                    me->DespawnOrUnsummon();
                    otherWorm->DespawnOrUnsummon();
                }
                else
                    instanceScript->SetData(TYPE_NORTHREND_BEASTS, SNAKES_SPECIAL);
            }
        }
    }

    void JustReachedHome()
    {
        if (instanceScript && instanceScript->GetData(TYPE_NORTHREND_BEASTS) != FAIL)
            instanceScript->SetData(TYPE_NORTHREND_BEASTS, FAIL);

        me->DespawnOrUnsummon();
    }

Is there any help for this?

If I remember correct in this encounter you have to kill them within seconds of each other. That’s how the encounter was design.

Yes it is seconds, but I mean if you kill one; I mean within .1 seconds. the other despawns. The timer is supposed to cause an enrage after you kill one, but instead it will enrage and then it will despawn immediately afterwards.