Add missing file_close()