Respond to connection errors and allow cancellation of responses

If the connection is closed or has an error, send GOAWAY and
close all streams with a RST_STREAM.