ugly fix for aborted tasks check