[events] rm unused code & handled 'abort' in ajax error