http: ensure client request emits close
If socket creation failed then an error would be emitted on the client request object, but not 'close' nor would destroyed be set to true.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines