Close streams when a connection is terminated

This also adds some things to let node-http2 emit the
proper events.