System.exit(0);

Read more of this post