fixed thread starting bug in linux where the thread was being killed before it was being created