keep ConsoleCtrlCheck lifetime prevent error occur when closing console("CallbackOnCollectedDelegate was detected")