close also if socket.readyState is on "opening"