Public/TenantConnection/Disconnect-CustomerExchange.ps1

function Disconnect-CustomerExchange {
    process {
        try {
            Disconnect-ExchangeOnline -Confirm:$false
        }
        catch {
            Write-Error "Failed to disconnect from Exchange Online: $_"
        }
    }
}