Fixed uncaught error issue

Now allows developers to track history of uncaught errors and
exceptions.