Don't start the session when in cli mode

Make sure cli requests don't block other requests by starting a session.

sessions don't work in cli anyway.

cc: @karlitschek @DeepDiver1975 @schiesbn