In some custom gamemodes, a team can win without destroying the enemy nexus. To end the game, so that the other players can play a new game, all have to surrender. If this isn't possible (win before 20 minutes on SR), all quit the game. Of course you can continue playing on the map, but only if all players want this, so they don't have to wait while you play.