The season started about as well as it could have, as the Washington Redskins started the season 6–2, with their two losses coming by a combined 11 points to the 2008 New York Giants season and 2008 St. Louis Rams season. Furthermore, Redskins star Clinton Portis led the NFL in rushing yards and Jason Campbell was just 40 pass attempts away from breaking Bernie Kosars record of consecutive passes to start the season without an interception. However, things turned for the worse on the eve of the United States presidential election, 2008, when they were routed 23–6 by the 2008 Pittsburgh Steelers season and Clinton Portis injuries finally caught up to him. The Redskins continued to struggle, falling all the way to 7–7, with their only win during that six-week period being a 3-point victory of the then-2–8 2008 Seattle Seahawks season, who would finish the season 4-12. The Redskins managed to upset the 2008 Philadelphia Eagles season in Week 16, but were eliminated from playoff contention after the 2008 Atlanta Falcons season defeated the 2008 Minnesota Vikings season 24–17 that same week. The Redskins lost the final game of the season 27–24 to the 2008 San Francisco 49ers season, despite having a 17–7 lead at halftime, losing on a Joe Nedney field goal as time expired.

Answer this question based on the article: Which team won the final game of the 2008 season, the Washington Redskins or the San Francisco 49ers?
San Francisco 49ers