Moving recording of response on socket close.