Recent Python already catches exceptions due to garbage collection on exit.
Attach a file by drag & drop or click to upload