Maybe make `_send_failure` a method? The deep nesting is unnecessary here.