remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening (closes #16900)
merge 3.3 (#16900)