The client now closes on losing connection with server