title: Java Force Close Program
body: <p>How can I programatically force close the program upon exit.
  I've added the shutdown hook which calls a <code>System.exit(0)</code> but it seems to have problems executing that. The <code>javaw.exe</code> process keeps running in memory even though the Jframe is closed and the shutdown hook was executed.</p>
  
  <p>Additionally, when I manually close the batch file running the program, windows throws the Force Close message.
  image: <a href="http://i.imgur.com/gy57OEV.png" rel="nofollow">http://i.imgur.com/gy57OEV.png</a></p>