Fix logout on CLI