Auto-reconnect

Client now auto-reconnect on connection loss