def METHOD_NAME(self, dut_debug=False):
    """
    close()
    close all DUTs of the Env.
    :param dut_debug: if dut_debug is True, then print all dut expect failures before close it
    :return: exceptions during close DUT
    """
    dut_close_errors = []
    for dut_name in self.allocated_duts:
        dut = self.allocated_duts[dut_name]['dut']
        try:
            if dut_debug:
                dut.print_debug_info()
            dut.METHOD_NAME()
        except Exception as e:
            traceback.print_exc()
            dut_close_errors.append(e)
    self.allocated_duts = dict()
    return dut_close_errors