do not try to join on thread when pthread_create() fails
to create thread. was causing core.