explicitly close fd when reopening logfile, reopen in 'a' mode when writing; 1.0.9