Also support passing through state param for failure callback