core: close webserver correct way
core: close webserver correct way

Former-commit-id: 40cdb95a5b03eb9652e849d98a45019518e7c657
Former-commit-id: c8736001d816c2dd25513798fd226e030c7afc7d
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2