(pthread_exit): main thread now calls exit() instead of _exit() in