http: forbid double 'close' event