stp.set_internal_error_policy

stp.set_internal_error_policy(abort)

Process-wide: abort (True) or poison the object (False, the default) on INTERNAL/RESOURCE errors.