added error listener to socket.service