Where are you doing this?
Have you tried setting a break piont when there are only two players left to debug?
I would suggest tracking this in the game instance or game mode via a (set of) functions.
That way the server can call the restart level (IIRC there is a console command called “restartlevel” to restart the current level).
HTH