the hard exit can be not the right things when you launch the jar from a java application and stay within the application after main returns.