Don't have Telegram yet? Try it now!
https://kodejava.org/how-do-i-terminate-a-java-application/
How do I terminate a Java application?