Cubs hand Rangers 5-4 loss