Pass exit code to JVM_destroy.

Otherwise System.exit() will be called with a different exit code and our exit code will be ignored.

Also simplify reload logic a touch.   We don't need a dedicated function for it.