_close_socket in _reconnect unusable at current location

Moved never-actually-functional _close_socket call to earlier in _reconnect