Added auto-reconnect on ping timeout