Wrap all analytics calls with a try/catch. Addresses #156