title: Ensure process closure
body: <p>I have a program that absolutely needs to be able to shut itself down succesfully every single time it needs to.</p>
  <p>But I do not know exactly how to go about this.</p>
  <p>It runs in user-mode and, while I do not know for sure how to do it, someone may be able to prevent it from closing from kernel-mode, and I'd like to somehow prevent that from happening.</p>
  <p>Is there some function I can call or a certain part of the memory I can overwrite that could ensure my process exits?</p>
  <p>Of course nothing is fool-proof, but I'd like to know the best way you know of doing this.</p>