Avoid closing a socket we're about to use.