How i know that game is finished?
game.turn_number == constants.MAX_TURNS. But your bot will be killed when game is over. There is no reason to check it.
How verify if the bot was killed?
If it was killed it’s dead The only thign you can do i think is uncompress replay and find be some information in JSON.