Add api for stopping a cluster.