First possibly working attempt.
Change where plugin create occurs, so that its only made once.
Fix some little issues, but log file reading now appears to work properly.