Rising costs are hurting miners now.