reconnect on json parsing error