'Quit fuzzbunch'

def do_quit(self, arg):

    try:
        opencontracts = [item.name for item in self.session.get_itemlist() if item.value.has_opencontract()]
        if opencontracts:
            self.io.print_opensessions({'sessions': opencontracts})
            line = self.io.get_input('Really    quit    [n]    ?    ')
            if (line.lower() not in ('yes', 'y', 'q', 'quit')):
                return
        if self.log:
            self.log.close()
        return True
    except:
        pass
    return True
