Calling exit from a pthread?