public static void Terminate() { if (!NativeMethods.TwTerminate()) { throw new AntTweakBarException("TwTerminate failed."); } }