copy/paste pthread_thread bug by user otila on bitcointalk
I wasn't freeing xptClient also caught by user otila on bitcointalk