Ensure we emit the notify message before renaming the open files.