SYS-811: closing mkstemp file