Fixed logout exception thrown on the client