add provide on_error handler for ev server