Fixes #3. Catches generic errors and sleeps.
Merge pull request #4 from joelchoo/master

Fixes #3. Catches generic errors and sleeps.