Move the LogFile to Log to fix the string pointer issue.
Catch the first error and exit in supervisor mode.