Assuming that you are using Lua 5.3, take a look at https://www.lua.org/manual/5.3/manual.html#6.8 (I/O Functions):...io.close ([file])Equivalent to file:close(). Without a file, closes the default output file.