Cloud Connection/Disconnection under application control and Bug Fixes