abort ajax request when receiving an error via socket.io