What was considered to be the turning point in the Soviet Afghan war?

The Afghan War was a steady, routine, war against insurgency. The turning point was when the Soviets decided to leave in 1989.