stop thread in dealloc