End of stream is not being sent to client when closing connection from the server.
1) Log in from an client
2) Open an xml console from the client
3) Log into the admin console
4) Go to session summary and close the connection
5) you should see a </stream> in the xml console