when server closes client also closes now