bugifx: multiple socket.io connection established. Error handling added