added an error handler which calls set_error_handler()