end stream when rotate.