Does a destructor get called if the app crashes? If it\'s an unhandled exception I\'m guessing it does, but what about more serious errors, or something like a user killing
If killing an application, the application would almost 100% lost the control immediately and there's no chance for it to call the destructor.