In a contest that was too close for comfort, Klay Thompson scored a game-high 27 points, helping lead the Warriors to a late finish over the Pistons.