wait few seconds to have chance to check child errors
dump log to stdout if err happens
logfile type to save the start offset
log Dump function
better error output
Move the LogFile to Log to fix the string pointer issue.
Catch the first error and exit in supervisor mode.
fix error output