config can end script based on a Proc