title: Java exit a program without quitting JVM
body: <p>I want to exit a java process and free all the resources before it finishes its normal running, if a certain condition is meet. I dont however want to quit JVM, as I have other java programs running at the same time. Does <code>return;</code> do the above, or is there a better way to do it?</p>
  
  <p>Thanks.</p>