Added client reconnect after connection failure