Send stream end message on connection failure

Change-Id: I0c6f94b6fedf1ff4e26c4562eb155f9d1928003e