Not able to back out of a thread