Adding a missing restore_error_handler call.