My program need to occupy some resources.
I want it to release those resources before exit. It\'s easy to achieve when the excutable exit normally.
However, what if the user
When the process is killed the rug is yanked out from under you. But the process's resources will be killed along with the process, so you don't need to clean them up. Ensuring e.g. file consistency, however, is a significantly more complicated story (similar to if the plug were yanked out).