Refactor renameat() arguments into the exit handler.