add stop thread example