CLOUD-149 added terminate websocket call