CLOUD-237 added logout function