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

Patch by Claudiu.Popa.
1 file changed