Having anticipated that the wraiths would come for Shen Jiayi, Kai Syaran had set up things that she would survive. When Ran Lan broke through, Kai Syaoran had to go to her and deal with the heavenly annihilation. He had left behind his will and he was now the one taking care of Shen Jiayi.
The will knew that it did not have the power to escape the kingdom with Shen Jiayi and Kai Syaoran had known this as well. Since this was the case, his plan was simple. The will had to keep the young woman alive long enough until the main body returned.
When the wraith showed itself and Kai Syaoran's will woke up, the main body felt its awakening and he understood that the chaos that would wipe out the Grand Ocean kingdom had finally begun.
The main body/Kai Syaoran was in the middle of a meeting with the new god realm cultivators he had created with the blood beads when he felt the activation of the will.