Bug 817568 - Enclose more API calls with __try...__except. r=mcmanus