* 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(new ComputeServiceContextFactory());
destroyer.execute(clusterSpec, null);
Files.deleteRecursively(clusterSpec.getClusterDirectory());
}