Stop viewfinder after the pipeline reaches idle state.