fix: improve close handling
JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport interface