Hey,
When working under the player part signal, remember always that you cannot use ID's. The player has left, if you try running a command to get the players name or information from the ID, it simply will not work because the player is not there anymore.
To get the player name, I would work with the signal to improve it, or sync player names to be saved to a var or smt before the player leaves.
Regards,
Tommis