hou._isExiting
function
Returns whether Houdini is in the process of exiting. This function is called internally by the interactive Houdini Python shell.