Made client more robust. Allow user to suspend thread.