Do we need to increment the failure count in here? Or move the increment into a `finally` block?