title: Signal handling using "TERM"
body: <p>I have a standalone application in which I have to prompt the user with an confirm dialog box to save the changes made by him when he tries to shutdown the system by <code>start--&gt;shutdown</code>.</p>
  
  <p>I came to know that by using <code>signalhandlers</code> we can do it.<br>
  Can some one help me how to use signal handlers </p>