net: emit close on unconnected socket
Socket should always emit 'close'. Regardless whether it has been connected or not.
Probably a minor fix for an edge case.
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