catch uncaught exceptions
Merge pull request #1 from tejas-manohar/master

catch all uncaught exceptions