defer close of http body