Why is my client losing messages?