Better test if we're running at the cli or in lighty. Also suppress output for the session start if it fails.