I am sure this question has been asked number of times because I read a few. My client wants me to put a button into his app where users can click and exit. I have read this
Instead of System.exit(1) Just use System.exit(0)