public class Main { public static void main(String[] args) { try { //code goes here } catch (Exception e) { System.exit(0); } } }