Improved exception handling when canceling the connect operation in Sender