Utils
            exit_app()
    
            log_state(state, state_type)
    Logs the app state.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
state | 
            
                  AppState or RunState
             | 
            
               The state to log.  | 
            required | 
state_type | 
            
                  app or run
             | 
            
               The type of state being logged.  | 
            required |