added catch-all error handling to run()
Merge pull request #1 from nickdella/master

Add catch-all error handling to run()