update LogTailer to tail logs when the request body is closed rather than when the middleware itself returns