close also if socket.readyState is on "opening"

upon connecting to the eio server, the connection is set on 'opening', and stays there, if the eio server is not reachable. in such a state, it is currently impossible to manually close the ongoing connection. this commit tries to fix that.