log delivery errors