allow killing of thread