More elegant inheritance of scriptLogger and correction of WeakReference handling