logout on failure for pip install