handle invalid json coming from the miner