only close after renaming