Added explicit System.exit(0) when main is done to work around MacOS X JDK issue which leaves the JVM running when main is done on command line apps. PR: Obtained from: Submitted by: Reviewed by: