Added onAbort callback.