Fix: was not opening log fil at end (ate)