Made prediction tasks terminate when complete.