Does the client quit, or the Terminal? Do you get a message from OS X about "such and such has unexpectedly quit"? If you do get any error messages, what do they say?
There are multiple possibilities. To narrow it down, we need to know the details about the problem.