The Java process runs on demand as and when you want to run it. It's not a daemon. You need to stop the Java process manually (kill it) if it doesn't end gracefully.