It never is. You always have until the last whistle, or the final point.
Even when that final moment doesn’t go your way, even when you lose in the most embarrassing fashion, there is always the next game (for as long as you continue to play).
The game only stops when you do. Stop after a loss, and you lose; persist, and you might just be that little sharper next game.