Emit an error when the request is aborted.