docs: public static void registerShutdownHook(int priority, boolean runOnCrash, Runnable action)
      {
          m_instance.addHook(priority, runOnCrash, action);
          //Any hook registered lets print crash messsage.
          ShutdownHooks.m_crashMessage = true;
      }