Hello, Is there a way to catch a "global" exception in a python program (meaning that if there would be an error during execution it could call a function before exiting)? I have a program that creates large temp files and in case of any unforseen problems I still need to clean up before exiting. Thanks, Hilbert