listen 'close' instead of 'end' of response