core: ensure that queue tasks exit early if called after abort or finalized.