properly disposing the cloud client