add error handler in overridden console methods