Make exit logic a bit more verbose/loggy.

Also invoking the java.lang.System.exit method when on the JVM to make sure
we're shutting down the JVM properly. I have my doubts that this is happening
currently