check for conf.error_handler before using it