Handle clean disconnect (</stream>) like tcp_close.