Fixed the crash when player leaves bug

It tried to send the leave message to the client that was leaving,
causing a error.