Obey cloud session configuration also in cli client and exit if
authentication fails