For instance when I have main loop with
try: except: and finally:
if i run it with Run Alt+Shift+F10 or run Shift+F10
when I end it with Stop Ctrl+F2
I get only
Process finished with exit code 1
and code in finally: close is not executed how can I end program and execute finally part
if I run it from cmd prompt and end with Ctrl+C it is finished properly.