pthreads will now be exited explicitly