added a return statement after phtread_exit to please the compiler.