Almeida (as all other riders...) is human and, on that particular stage and based on what was happening inside his own team, was mentally all over the place....
He obviously is not the best rider in world but one thing he clearly is is a fighter, he never quits, and the way he ended that stage...