Fix issue #21641: Close the socket before raising the SMTPResponseException. Fixes the ResourceWarning in the test run.

Patch by Claudiu.Popa.
Issue #21439: Fix a couple of typos.
Issue #21643: Updated test and fixed logic bug in lib64 symlink creation.