Logout on xml error