* cluster may or may not have been stopped.
* @throws InterruptedException if the thread is interrupted.
*/
public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
InterruptedException {
DestroyClusterAction destroyer = new DestroyClusterAction(getCompute());
destroyer.execute(clusterSpec, null);
stateStoreFactory.create(clusterSpec).destroy();
}