Guard against http response emitting both 'end' and 'close' events.

I'm not sure if `http.response` is supposed to emit both 'end' and 'close' events, but it has happened to me intermittently, and it can't hurt to guard against this.