terminating a thread  stop();//deprecated throws a ThreadDeath object  set thread reference to null