def disconnect(self):
        for output_file_i, file_name in self.table_names:

            try:
                output_file_i.close()
                current_input_file = open(file_name, "r")
                file_contents = current_input_file.readlines()
                current_input_file.close()
                file_contents[-1] = file_contents[-1].strip(',')
                current_output_file = open(file_name, "w")
                current_output_file.writelines(file_contents)
                current_output_file.write('\n</root>')
                current_output_file.close()

            except:
                # when disconnect is called by app.connect_wizard.ConfirmPage to
                # confirm the connection, output_file doesn't exist yet, this is
                # fine so just pass
                pass
Returns a list suitable for the 'labels' field of USER_PROFILE_METADATA.
dataset/ETHPy150Open weecology/retriever/engines/xmlengine.py/engine.disconnect--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/user.py/User.MakeLabelList