Adding try/catch on result writing to ensure we have some info.