Client properly closes the connection