Update client.py

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