Fix issue when stopping TE started in the future crashed the app