So pseudo word of god is that the Sonic Prime universe deletes itself in the end. So basically it was all for nothing. In that case, Shadow was likely at ground zero and was deleted first/saw the deletion begin.
And we'll be doing so within the week. Poor Shadow is going to be hit hard, and Nine's just going to double down on establishing his new life, but also try to understand what went wrong even though it can't be fixed.