Dispose clientwebsocket properly.