change httpclose to http-server-close for efficiency