error handling to socket.js also
One more test