Added uncaughtException error handler. It only output the error info on
the terminal for now.