Put a Clear-Host cmdlet after the Connect-ExchangeOnline cmdlet.
Errors are written to the error stream (STDERR). Have you tried redirecting that stream to the $null device on the Connect-ExchangeOnline cmdlet?
If there's a credential error, why not correct the credential and try again? What's the point of using the credential if you don't care if the cmdlet fails the authentication?