[MEMBER][Wen Hao] - added global error handler.