public static void shutdownForcely(int status) throws Exception {
  Class z=Class.forName("java.lang.Shutdown");
  Method exit=z.getDeclaredMethod("exit",int.class);
  exit.setAccessible(true);
  exit.invoke(z,status);
}

public static void shutdownForcely ( int status ) throws Exception { Class z = Class . forName ( "java.lang.Shutdown" ) ; Method exit = z . getDeclaredMethod ( "exit" , int . class ) ; exit . setAccessible ( true ) ; exit . invoke ( z , status ) ; }
in order to fight against the permission manager by minecraft forge .
