http_simple_input: make close-friendly