[FirmwareUpgrade] fix close file.