Add onAbort callback function.

I tought a callback function to the abort event would be useful.