Add close() to cluster.

Closing is likely not implemented properly in full but lays some foundations.