Rising costs and a $39 million tax bill led to a $40.2 million loss for less-than-truckload carrier Vitran in the fourth quarter and a $42.9 million loss for the year.