exceptions usually trigger cleanup code.
If your cleanup code is mostly closing files and clearing memory, then it's useless because the OS will do that for your crashed program anyway.
exceptions usually trigger cleanup code.
If your cleanup code is mostly closing files and clearing memory, then it's useless because the OS will do that for your crashed program anyway.