How to initiate the end of the game?

I would know if there is a property to quit the game when it's finished by a player ? How can i do that ?
Thanks. :thinking: