End effects on the transition to time-dependent motion in the Taylor experiment