fix 'stale file handle' error in logs