Reduce scope of try/catch blocks.
Merge pull request #32 from mapbox/restrict-try

Reduce scope of try/catch blocks