Add API to close connection and clean up cloud provider.
Add API to close connection and clean up cloud provider.

LLK/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui,cwillisf/scratch-gui