Works sometimes have to find out where problem is

Sometimes my client doesn't get a full message and it crashes causing
the middleware to crash as well. Find way to make data transfer more
reliable.