sets the client to disconnected