re-open the file if someone has deleted it

i.e. while we waited for the lock, or while we were doing
something else.
Use the new logfile API