Connection tests - making logs friendlier by differentiating messages from the server and the client side.
Connection - adding test for connection close and fixing most issues revealed by it