There is always some degree that you can blame the ref in any game (and this gets magnified in games involving Juve, Milan, & Inter), but the team needs to be able to withstand the attack that comes at the end of any game you are in the lead. Especially with a 2 goal cushion to protect. I fear this is the type of thing that can get stuck in the minds of the players when in a similar situation in the future.
The 2 end of game errors by Torino are more frustrating for me. A cross into the box, that Padelli can get 2 hands on, needs to be caught. At the very least, punched out to a less dangerous area than the top of the box. Contact on a punch out is rarely called, but given almost every time on a catch attempt.
Then you have the issue of the defender reaching for a tackle, inside the box, on a player that's up against the end line. That is just poor decision making. He got stuck in a bad spot sure, but you have to know to play smarter than that and play off the ball. Make the attacker make a great play, and don't give them a bailout.