Fix an issue that forget to close the http connection