Throw and catch exception when result.json cannot be found