defer close response, to fix too many open files issue