Unregister the stream when the client has disconnected