Implement correct HTTPFile.Close semantics