HTTP: emit clientError if a socket error occurs in the server