def METHOD_NAME(self):
    self.device.destroy()
    self.library.destroy()
    try:
        self.menu.destroy()
    except AttributeError:
        pass
    else:
        del(self.menu)
    config.quit()