httpd: try to close client connection on failures