exit from task if we don't have record any more