Adding an error listener on proxy streams