Don't use-after-free and thereby move the wrong file!