Add log error in ErrCallback to prenvent defer to silent python error