title: Shutdown Hook c++
body: <p>is there some way to run code on termination, no matter what kind termination (abnormal,normal,uncaught exception etc.)? 
  I know its actually possible in Java, but is it even possible in C++? Im assuming a windows environment.</p>