FS#9409: fix rename which didn't close file handles on error and enventually cause...