[Bugfix] Don't initialize the session on CLI.