Do not hand out RestClient when a logout is in progress
Merge pull request #510 from bhariharan/unstable

Do not hand out RestClient when a logout is in progress