proc exit 1 if errors