Minor changes to allow logging out in the client.