For now move terminate_cluster to common.py

Need todo this to create circular import! Need to look at this
again.