Middleware seems to be running

Client closing connection before receiving all messages through socket
is causing problems.