remove pthread exit