regression from refactoring close to close_logs