Fix write after close on http response Upstream-commit: ef33efc9b9879a8397288b1bd54d8f3fd2460e56 Component: engine