Added uncaught error handling to tracing, uncaught errors will result in an alert
Fixed a couple bugs in uncaught error catching