def main():
    document = input('Your document name is ')
try:
    with open(document, 'r') as a:
        for element in a:
            print(element)
except:
    print(document, 'does not exist')
return
if __name__ == '__main__':
    main()
how do I exit program in try except