Update client.py

Moved never-actually-functional _close_socket call to earlier in _reconnect
fix
Merge pull request #217 from holbech/patch-1

_close_socket in _reconnect unusable at current location